<?php
/**
* The grid layout for our index file.
*
* @package fructa
* @since fructa 1.0
*/
?>
<div class="f-grid f-sustainability-grid container">
	<div class="row-fluid f-grid-row">
		<div class="span6 f-grid-txt grid-bg1 f-grid-heigth">
			<?php
			$the_query = new WP_Query('name=Sustainability-P01');
			if ($the_query->have_posts()) {
				while ($the_query->have_posts()) {
					$the_query->the_post();
					the_content();
				}
			}
			?>
		</div>
		<div class="span6 f-grid-img  f-grid-heigth-img" >
			<?php
			$the_query = new WP_Query('name=Sustainability-P02');
			if ($the_query->have_posts()) {
				while ($the_query->have_posts()) {
					$the_query->the_post();
					the_content();
				}
			}
			?>
		</div>
	</div><!-- end of grid block  -->
	<div class="row-fluid f-grid-row">
		<div class="span7 f-grid-img">
			<?php
			$the_query = new WP_Query('name=Sustainability-P03');
			if ($the_query->have_posts()) {
				while ($the_query->have_posts()) {
					$the_query->the_post();
					the_content();
				}
			}
			?>
		</div>
		<div class="span5 f-grid-txt f-grid-heigth grid-bg3">
			<?php
			$the_query = new WP_Query('name=Sustainability-P04');
			if ($the_query->have_posts()) {
				while ($the_query->have_posts()) {
					$the_query->the_post();
					the_content();
				}
			}
			?>
		</div>
	</div><!-- end of grid block  -->
</div><!-- end of f-grid -->